package com.wuyu.mini.spring.mvc;

import com.wuyu.mini.spring.annotation.MiniController;
import com.wuyu.mini.spring.annotation.MiniResponseBody;
import com.wuyu.mini.spring.aop.aspect.MiniRequestMapping;
import com.wuyu.mini.spring.aop.aspect.MiniRequestParam;
import com.wuyu.mini.spring.common.RequestMethod;

@MiniController
@MiniRequestMapping(value = "test",method = RequestMethod.GET)
public class TestController {

    @MiniRequestMapping(value = "/show",method = RequestMethod.GET)
    public @MiniResponseBody TestResp show(@MiniRequestParam("id") Long id, @MiniRequestParam("name") String name){
        TestResp resp = new TestResp();
        resp.setId(id);
        resp.setName(name);
        return resp;
    }
}
